//
//  SGSEventDescriptionViewController.h
//  AgileNYC
//
//  Created by German on 31.07.14.
//  Copyright (c) 2014 Softlegion. All rights reserved.
//

#import <UIKit/UIKit.h>

@interface SGSEventDescriptionViewController : UIViewController

@property (weak, nonatomic) IBOutlet UILabel *labEventTitle;
@property (weak, nonatomic) IBOutlet UILabel *labAuthor;
@property (weak, nonatomic) IBOutlet UILabel *labEventTime;

@property (weak, nonatomic) IBOutlet UIImageView *imgEventPhoto;
@property (weak, nonatomic) IBOutlet UITextView *labEventDescription;
@property (weak, nonatomic) IBOutlet UILabel *labTrack;

@property (weak, nonatomic) IBOutlet UIView *vwCaption;
@property (weak, nonatomic) IBOutlet UIView *vwEventRating;

@property (weak, nonatomic) IBOutlet UIButton *btnCheckIn;
@property (weak, nonatomic) IBOutlet UIImageView *imgCheckIn;

@property (weak, nonatomic) IBOutlet UIButton *btnStar1;
@property (weak, nonatomic) IBOutlet UIButton *btnStar2;
@property (weak, nonatomic) IBOutlet UIButton *btnStar3;
@property (weak, nonatomic) IBOutlet UIButton *btnStar4;
@property (weak, nonatomic) IBOutlet UIButton *btnStar5;
@property (weak, nonatomic) IBOutlet UILabel *labAvgRating;

@property (weak, nonatomic) IBOutlet UIButton *btnConnect;
@property (weak, nonatomic) IBOutlet UIButton *btnBack;

@property (weak, nonatomic) IBOutlet UILabel *labSessionId;

@property (assign, nonatomic) NSInteger delayRating;
@property (strong, nonatomic) NSNumber * delayCheckIn;

@property (weak, nonatomic) IBOutlet UIActivityIndicatorView *spinnerPhoto;

- (IBAction)onConnectButtonClick:(UIButton *)sender;
- (IBAction)onRatingStarClick:(UIButton *)sender;
- (IBAction)onCheckInButtonClick:(id)sender;
- (IBAction)onButtonBackClick:(UIButton *)sender;

-(void) checkLoginAndSetRating:(NSInteger) rating andMakeCheckIn:(NSNumber*) checkIn;

@end
